package com.itheima.thread;

import com.itheima.pojo.User;
/**
 * @author YangJiaHao
 */
public class TokenThreadUtils {
    public static ThreadLocal<User> threadLocal = new ThreadLocal<>();

    public static User getThreadLocal(){
        return threadLocal.get();
    }
    public static void setThreadLocal(User user){
        threadLocal.set(user);
    }
    public static void remove(){
        threadLocal.remove();
    }
}
